﻿using UnityEngine;
using System.Collections;

public class CMissionMgr
{
    //E_SCENE.ePLAYGAME 씬의 게임상태를 열거
    public enum E_GAMESTATE { eLOADING = 0, ePLAYING, eRESULT, eEND };
    
    public void StartGame()
    {
        m_eState = E_GAMESTATE.ePLAYING;
    }

	public void UpdatePlaying()
	{
		CScoreList ScoreList = CGlobalMgr.Instance.HUDMgr.ScoreList;
		if (0 > ScoreList.m_CurScore.Score || 0 >= ScoreList.m_Life.Life)
		{
			m_eState = E_GAMESTATE.eEND;
			ScoreList.m_HighScore.UpdateHighScoreFile(ScoreList.m_CurScore.Score);
		}
	}
    //현재 게임 상태
    private E_GAMESTATE m_eState = E_GAMESTATE.eLOADING;

    public E_GAMESTATE eGameState
    {
        get { return m_eState; }
        set { m_eState = value; }
    }
}

